package com.ruoyi.deeplearn.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.deeplearn.component.PublishForecastLayerProcess;
import com.ruoyi.deeplearn.service.IDeepForecastService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/inner")
public class InnerForecastTifPublishContoller {
    @Autowired
    private IDeepForecastService deepForecastService;
    @Autowired
    private PublishForecastLayerProcess publishForecastLayerProcess;
    @GetMapping("/forecast/publishTif/{id}")
    public AjaxResult publishTif(@PathVariable("id") Long id)
    {
        publishForecastLayerProcess.sendPublishForecastLayerMessage(id);
        return AjaxResult.success();
    }
    @GetMapping("/forecastResult/publishTif/{id}")
    public AjaxResult forecastResultPublishTif(@PathVariable("id") Long id)
    {
        publishForecastLayerProcess.sendPublishForecastResultLayerMessage(id);
        return AjaxResult.success();
    }
}
